package service.impl;

import bean.Clothes;
import service.ClothesService;
import utils.BusinessException;
import utils.ClothesIO;

import java.util.List;

public class ClothesServiceImpl implements ClothesService {

    ClothesIO clothesIO = new ClothesIO();

    //获取产品集合
    @Override
    public List<Clothes> list() throws BusinessException {
        return clothesIO.list();
    }
    //实现根据商品id查询商品
    @Override
    public Clothes findById(String cid) throws BusinessException {
        return clothesIO.findById(cid);
    }

    //更新商品信息
    @Override
    public void update() throws BusinessException {
        clothesIO.update();
    }
}
